package com.example.musicrecommend.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.musicrecommend.model.entity.Song;
import com.example.musicrecommend.model.vo.SongVO;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
* @author PERSON
* @description 针对表【song(歌曲)】的数据库操作Mapper
* @createDate 2024-10-02 00:41:20
* @Entity com.example.musicrecommend.model.entity.Song
*/
public interface SongMapper extends BaseMapper<Song> {


    Page<SongVO> selectSongsPage(Page<SongVO> page, @Param(Constants.WRAPPER) Wrapper<SongVO> queryWrapper);
    SongVO getOneSongById(@Param("id") Serializable id);
}




